package com.fanyouzhao.ssm251.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import net.sf.jsqlparser.expression.DateTimeLiteralExpression;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author: fanyouzhao
 * @Date: 14:46 2021/5/8
 */
@Data
@ToString(exclude = {"pwd","salt"})
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "tb_admin")
public class Admin implements Serializable {
    // 主键策略
    @Id
    // 设置id为自增策略（可以省略，主键默认自增）
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "admin_id")
    private Integer id;
    @Column(name = "admin_name")
    private String name;
    @Column(name = "admin_pwd")
    private String pwd;
    @Column(name = "admin_salt")
    private String salt;
    @Column(name = "admin_phone")
    private String phone;
    @Column(name = "admin_regTime")
    private Date regTime;
}
